package com.masterclient.app.businessmodule.homemodule.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.masterclient.app.R;
import com.masterclient.app.modules.income.model.MineDataBean;
import java.util.List;

public class NoticeAdapter extends BaseQuickAdapter<MineDataBean.NoticesItem, BaseViewHolder> {

    public NoticeAdapter(@Nullable List<MineDataBean.NoticesItem> data) {
        super(R.layout.notice_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MineDataBean.NoticesItem item) {
        TextView tvTitle = helper.getView(R.id.tv_title);
        TextView tvTime = helper.getView(R.id.tv_time);
        tvTitle.setText(item.noticeTitle);
        tvTime.setText(item.createTime);
    }
}
